<template>
  <div>
    <div class="wrapper">
      <div class="moneyBox">
        <p>ID: {{userAccount.id}}</p>
        <div class="moneyNum">
          <span>{{userAccount.amount}} 漫币</span>
        </div>
      </div>
      <div class="userManagement">
        <!-- <div class="userlist" >
          <div class="line" @click="()=>$router.push('/mine/userInfo')">
            <div class="leftC">
              <div class="text">
                银行卡
              </div>
            </div>
            <div class="rightC">
              <img class="iconC" src="~@/assets/images/user/xiayiye@3x.png">
            </div>
          </div>
        </div> -->
        <div class="userlist" >
          <div class="line" @click="()=>$router.push('/mine/moneyEdit?type=1')">
            <div class="leftC">
              <div class="text">
                充值
              </div>
            </div>
            <div class="rightC">
              <img class="iconC" src="~@/assets/images/user/xiayiye@3x.png">
            </div>
          </div>
        </div>
        <div class="userlist" >
          <div class="line" @click="()=>$router.push('/mine/moneyEdit?type=2')">
            <div class="leftC">
              <div class="text">
                提现
              </div>
            </div>
            <div class="rightC">
              <img class="iconC" src="~@/assets/images/user/xiayiye@3x.png">
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { mineApi } from '@/api'
export default {
  components: {
  },
  async created() {
    const res = await mineApi.getUserAccount()
    this.userAccount = res.data
    console.log('res', res)
  },
  data() {
    return {
      topResource: {
        centerCont: ''
      },
      userAccount: {},
      inviteCode: '',
      inviteInfo: {}
    }
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
@import "src/assets/css/mixin.scss";
@import 'src/assets/css/variables.scss';
  .wrapper {
    position: relative;;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /*background-color: #000;*/
  }
  .moneyBox{
    padding: 20px;
    background: #fff;
    margin-bottom: 20px;
    p{
      font-size: 18px;
      text-align: center;
    }
    .moneyNum{
      margin: 10px;
      text-align: center;
      span{
        font-size: 20px;
        color: $color-theme;
      }
    }
  }
  .userManagement{
    .userlist{
      background-color: #fff;
      padding: 10px;
      margin-bottom: 10px;
      .line{
        width: 100%;
        line-height: 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        .leftC{
          display: flex;
          justify-content: space-between;
          align-items: center;
          .iconC{
            width: 20px;
            margin: 5px;
          }
          .text{
            margin-left: 5px;
          }
        }
        .rightC{
          display: flex;
          justify-content: space-between;
          align-items: center;
          .iconC{
            width: 8px;
            margin: 5px;
          }
        }
      }
      .btnColumn{
        margin-top: 10px;
        border-top: 1px solid #efefef;
        display: flex;
        justify-content: space-between;
        align-items: center;
        .leftC, .rightC{
          flex: 0 0 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          line-height: 40px;
          img{
            width: 20px;
            margin: 5px;
          }
        }
      }
    }
  }
</style>
